package com.kimehwa.studyboot.bean.factorybean;

import com.kimehwa.studyboot.service.impl.FactoryBeanImpl;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author xiaodongguan
 * @description
 * @since 2021-09-13 23:13
 */
@Component
public class FactoryBeanLearn implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new FactoryBeanImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return FactoryBeanImpl.class;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
